.class public Lcom/bitauto/autoeasy/autoEasyApplication;
.super Landroid/app/Application;
.source "autoEasyApplication.java"


# static fields
.field public static final SoftName:Ljava/lang/String; = "autoEasy"

.field public static TAG:Ljava/lang/String;

.field private static instance:Lcom/bitauto/autoeasy/autoEasyApplication;


# instance fields
.field private mImageCache:Lcom/bitauto/autoeasy/tool/ImageCache;

.field private mRequestCache:Lcom/bitauto/autoeasy/tool/RequestCache;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 39
    const-string v0, "jamendo"

    sput-object v0, Lcom/bitauto/autoeasy/autoEasyApplication;->TAG:Ljava/lang/String;

    .line 33
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 33
    invoke-direct {p0}, Landroid/app/Application;-><init>()V

    return-void
.end method

.method public static getInstance()Lcom/bitauto/autoeasy/autoEasyApplication;
    .locals 1

    .prologue
    .line 57
    sget-object v0, Lcom/bitauto/autoeasy/autoEasyApplication;->instance:Lcom/bitauto/autoeasy/autoEasyApplication;

    return-object v0
.end method


# virtual methods
.method public getImageCache()Lcom/bitauto/autoeasy/tool/ImageCache;
    .locals 1

    .prologue
    .line 77
    iget-object v0, p0, Lcom/bitauto/autoeasy/autoEasyApplication;->mImageCache:Lcom/bitauto/autoeasy/tool/ImageCache;

    return-object v0
.end method

.method public getVersion()Ljava/lang/String;
    .locals 6

    .prologue
    .line 88
    const-string v3, "0.0.0"

    .line 90
    .local v3, version:Ljava/lang/String;
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/autoEasyApplication;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 92
    .local v2, packageManager:Landroid/content/pm/PackageManager;
    :try_start_0
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/autoEasyApplication;->getPackageName()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v2, v4, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    .line 93
    .local v1, packageInfo:Landroid/content/pm/PackageInfo;
    iget-object v3, v1, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 98
    .end local v1           #packageInfo:Landroid/content/pm/PackageInfo;
    :goto_0
    return-object v3

    .line 94
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 95
    .local v0, e:Landroid/content/pm/PackageManager$NameNotFoundException;
    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    goto :goto_0
.end method

.method public onCreate()V
    .locals 1

    .prologue
    .line 62
    invoke-super {p0}, Landroid/app/Application;->onCreate()V

    .line 63
    new-instance v0, Lcom/bitauto/autoeasy/tool/ImageCache;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/tool/ImageCache;-><init>()V

    iput-object v0, p0, Lcom/bitauto/autoeasy/autoEasyApplication;->mImageCache:Lcom/bitauto/autoeasy/tool/ImageCache;

    .line 64
    new-instance v0, Lcom/bitauto/autoeasy/tool/RequestCache;

    invoke-direct {v0}, Lcom/bitauto/autoeasy/tool/RequestCache;-><init>()V

    iput-object v0, p0, Lcom/bitauto/autoeasy/autoEasyApplication;->mRequestCache:Lcom/bitauto/autoeasy/tool/RequestCache;

    .line 66
    iget-object v0, p0, Lcom/bitauto/autoeasy/autoEasyApplication;->mRequestCache:Lcom/bitauto/autoeasy/tool/RequestCache;

    invoke-static {v0}, Lcom/bitauto/autoeasy/tool/Caller;->setRequestCache(Lcom/bitauto/autoeasy/tool/RequestCache;)V

    .line 67
    sput-object p0, Lcom/bitauto/autoeasy/autoEasyApplication;->instance:Lcom/bitauto/autoeasy/autoEasyApplication;

    .line 69
    return-void
.end method
